﻿using Volo.Abp.DependencyInjection;
using YAPACS.Workflows;

namespace YAPACS.RisServer.Workflows.Test;

public class TestWorkFlow : WorkflowBase, ITestWorkFlow, ITransientDependency
{
    protected override async Task<WorkflowOutput> InvokeCoreAsync(WorkflowInput input)
    {
        WorkflowOutput workflowOutput = new()
        {
            Success = true,
            ViewTitle = "测试amis",
            NextAction = "登记-紧急登记",
            NextActionCaption = "新建",
            ViewWidth = "50%",
        };
        workflowOutput.View = await Extensions.GetResourceStringAsync("Resources.Test.SecondJson.json");
        return workflowOutput;
    }
}
